-- GENERATED SPELL FOR [Shadowpine Witch] --


function spell0_16341(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(12550,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16341', 0, 1)
end

function Sorts_16341(pUnit, Event)
local choix_sorts_16341 = math.random(0, 0)
if choix_sorts_16341 == 0 then
pUnit:RegisterEvent('spell0_16341', 1, 1)
end
end

function mob16341_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16341', math.random(1500, 3000), 1)
end

function mob16341_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16341_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16341_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16341, 1, 'mob16341_Action')
RegisterUnitEvent(16341, 2, 'mob16341_Leave')
RegisterUnitEvent(16341, 3, 'mob16341_Kill')
RegisterUnitEvent(16341, 4, 'mob16341_Die')
